﻿<%@ page language="java" contentType="text/html;charset=utf-8" pageEncoding="utf-8"%>

<%@ include file="/core/taglibs.jsp"%>
<!DOCTYPE html>
<html lang="zh-CN">
<head>        
    <%@ include file="/core/memberMeta.jsp"%>
    <!-- 防止重复提交 -->
	<script type="text/javascript"> 
			var checkSubmitFlg = false; 
			
			
			function checkSubmit() {  
				if ($("#num").val() == "") {
					alert("请输入购买数量。");
					 
					return false;
				}  
				if ($("#centerId").val() == "") {
					alert("请输入专卖店编号。");
					 
					return false;
				}  
				
				 
				if ($("#myTwoPassword").val() == "") {
					alert("请输入安全密码。");
				 
					return false;
				}
				
				if (checkSubmitFlg == true) {   
					return false;   
				}   
				checkSubmitFlg = true;   
				return true;   
			}   
			document.ondblclick = function docondblclick() {   
				window.event.returnValue = false;   
			}   
			document.onclick = function doconclick() {   
				if (checkSubmitFlg) {   
					window.event.returnValue = false;   
				}   
			}   
		</script>
		
<style type="text/css">
.zsy{
	   background:url(http://wyz.67ge.com/wp-content/uploads/qzlogo.jpg);
	   filter:"progid:DXImageTransform.Microsoft.AlphaImageLoader(sizingMethod='scale')";
	   -moz-background-size:100% 100%;
	   background-size:100% 100%;
	}

</style>
</head>



<body>
	<script src="<%=basePath%>/resources/memberCss2/assets/js/theme.js"></script>
	<div class="page-heading">
		<h3>购物管理</h3>
		<ul class="breadcrumb">
			<li>购物管理</li>
			<li class="active">产品详情</li>
		</ul>
	</div>
	<section class="wrapper">
		<div class="row">
			<div class="col-lg-12">
				<section class="panel">
					<header class="panel-heading"> 产品详情 </header>
					<div class="panel-body">
						<form class="form-horizontal adminex-form" action="member/shop/goodsBuy.shtml" method="post" onsubmit="return checkSubmit();">
							<input type="hidden" name="id" id="id" value="${id}"/>
							<jodd:form scopes="request" beans="member">
							
								<div class="form-group">
									<label class="col-sm-2 col-sm-2 control-label">产品名称：</label>
									<div class="col-sm-10">
										${goods.title}
									</div>
								</div>
								
								<div class="form-group">
									<label class="col-sm-2 col-sm-2 control-label">产品价格：</label>
									<div class="col-sm-10">
										${goods.price}
									</div>
								</div>
								<%--<div class="form-group">
									<label class="col-sm-2 col-sm-2 control-label">PV值：</label>
									<div class="col-sm-10">
										<c:if test="${member.accountCenter=='T' }">${goods.pricePV}<span style="color: red">(折后${dianZhePayPV})</span></c:if>
										<c:if test="${member.accountCenter=='F' }">${goods.pricePV}<span style="color: red">(折后${zhePayPV})</span></c:if>
									</div>
								</div>--%>

								<div class="form-group">
									<label class="col-sm-2 col-sm-2 control-label">描述：</label>
									<div class="col-sm-10 imgMaxw">
										${goods.detail}
									</div>
								</div>

								<div class="form-group">
									<label class="col-sm-2 col-sm-2 control-label " >图片：</label>
									<div class="col-sm-10">
										<a href="<%=basePath%>/temp/${goods.imgName}" target="_blank" class="imgMaxw">
											<img src='<%=basePath%>/temp/${goods.imgName}' />
										</a>
									</div>
								</div>

								<div class="form-group">
									<label class="col-sm-2 col-sm-2 control-label">库存量： </label>
									<div class="col-sm-10">
										${goods.totalNum}
									</div>
								</div>

								<div class="form-group">
									<label class="col-sm-2 col-sm-2 control-label">购买数量： </label>
									<div class="col-sm-10">
										<input type="text" class="form-control m-bot15"  id="num" name="num"/> 
									</div>
								</div>
								
								<div class="form-group">
									<label class="col-sm-2 col-sm-2 control-label">我的现金积分 ： </label>
									<div class="col-sm-10">
										${member.money}
									</div>
								</div>
								
								<div class="form-group">
									<label class="col-sm-2 col-sm-2 control-label">收货人： </label>
									<div class="col-sm-10">
										<input type="text" class="form-control m-bot15" id="personName" name="personName"/>
									</div>
								</div>
								
								<div class="form-group">
									<label class="col-sm-2 col-sm-2 control-label">收货人电话： </label>
									<div class="col-sm-10">
										<input type="text"  class="form-control m-bot15" id="tel" name="tel"/>
									</div>
								</div>
								
								<div class="form-group">
									<label class="col-sm-2 col-sm-2 control-label">地址：  </label>
									<div class="col-sm-10">
										<input type="text"  class="form-control m-bot15" id="address" name="address" value="${member.remark}"/>
									</div>
								</div>
								
								<div class="form-group">
									<label class="col-sm-2 col-sm-2 control-label">邮编：  </label>
									<div class="col-sm-10">
										<input type="text" class="form-control m-bot15"  id="code" name="code"/>
									</div>
								</div>
								
								<div class="form-group">
									<label class="col-sm-2 col-sm-2 control-label">留言：   </label>
									<div class="col-sm-10">
										<input type="text" class="form-control m-bot15"  id="note" name="note"/>
									</div>
								</div>
								
								<div class="form-group">
									<label class="col-sm-2 col-sm-2 control-label">安全密码: </label>
									<div class="col-sm-10">
										<input type="password" class="form-control m-bot15" id="myTwoPassword" name="myTwoPassword"/>
									</div>
								</div>

								<div class="form-group text-center">${retMsg}</div>

								<div class="form-group text-center">
									
									<button id="submit" name="submit" type="submit" class="btn btn-primary">提交</button>
									
								</div>

							</jodd:form>
						</form>
					</div>
				</section>
			</div>
		</div>
	</section>
	<script src="<%=basePath%>/resources/memberCss2/assets/js/amazeui2.min.js"></script>
	<script src="<%=basePath%>/resources/memberCss2/assets/js/amazeui.datatables.min.js"></script>
	<script src="<%=basePath%>/resources/memberCss2/assets/js/dataTables.responsive.min.js"></script>
	<script src="<%=basePath%>/resources/memberCss2/assets/js/app.js"></script>
</body>




</html>


